﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Atleta.aspx.cs" Inherits="Autenticazione.Atleta" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href=Stile.css rel=Stylesheet type="text/css"></link>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%">
            <tr>
                <td align="center">
                    <table>
                        <tr>
                            <td><asp:Label ID="lblFullName" CssClass="lblBold" runat="server" Text="Atleta"></asp:Label></td>
                            <td align="left">
                                <asp:TextBox ID="txtFullName" MaxLength="50" Width="300px" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="FullNameValidator" ControlToValidate="txtFullName" runat="server" 
                                    Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="lblSesso" CssClass="lblBold" runat="server" Text="Sesso"></asp:Label></td>
                            <td align="left" colspan="2">
                                <asp:DropDownList ID="cboSesso" runat="server"></asp:DropDownList>
                            </td>
                        </tr>
                         <tr>
                            <td><asp:Label ID="lblBirthDay" CssClass="lblBold" runat="server" Text="Data di Nacita (mm/aaaa/gg)"></asp:Label></td>
                            <td colspan="2" align="left">
                                <asp:DropDownList Width="100px" ID="cboBirthMonth" AutoPostBack="true" OnSelectedIndexChanged="Month_Changed" runat="server"></asp:DropDownList>/
                                <asp:DropDownList Width="75px" ID="cboBirthYear" AutoPostBack="true" OnSelectedIndexChanged="Year_Changed" runat="server"></asp:DropDownList>/
                                <asp:DropDownList Width="50px" ID="cboBirthDay"  AutoPostBack="false" runat="server"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblBelt" runat="server" CssClass="lblBold" Text="Cintura"></asp:Label>
                            </td>
                            <td align="left" colspan="2">
                                <asp:DropDownList Width="150px" ID="cboBelt" runat="server" AutoPostBack="false"></asp:DropDownList>
                            </td>
                        </tr><tr>
                            <td>
                                <asp:Label ID="lblPeso" runat="server" CssClass="lblBold" Text="Peso"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox Width="150px" ID="txtPeso" runat="server" Text="0"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RegPeso" ControlToValidate="txtPeso" runat="server" 
                                    Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegExprPeso" runat="server" 
                                    ErrorMessage="Inserisci un numero (es. 69,50)" Display="Dynamic" CssClass="err" ControlToValidate="txtPeso" ValidationExpression="[+]?[0-9]+(,[0-9]+)?">
                                    </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <asp:Label ID="msgInfoAtleti" runat="server" CssClass="lblInfo" Text="Attenzione! In caso di incontri di contatto pieno (Low Kick, K1 Rules e Full Contact) indicare il numero di match. In caso di Grappling indicare il livello."></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblGrapplinLevel" runat="server" CssClass="lblBold" Text="Grappling Level"></asp:Label>
                            </td>
                            <td align="left" colspan="2">
                                <asp:DropDownList Width="60px" ID="ddlGrapplingLevel" runat="server" AutoPostBack="false"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblMatchFullContact" runat="server" CssClass="lblBold" Text="Match Full Contact"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMatchFullContact" runat="server" Width="50px" Text="0"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="ReqValMatchFullContact" ControlToValidate="txtMatchFullContact" runat="server" 
                                    Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegMatch" runat="server" 
                                    ErrorMessage="Inserisci un numero" Display="Dynamic" CssClass="err" ControlToValidate="txtMatchFullContact" ValidationExpression="[0-9]+">
                                    </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblMatchLowKick" runat="server" CssClass="lblBold" Text="Match Low Kick Contact"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMatchLowKick" runat="server" Width="50px" Text="0"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="ReqMatchLowKick" ControlToValidate="txtMatchLowKick" runat="server" 
                                    Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegMatchLowKick" runat="server" 
                                    ErrorMessage="Inserisci un numero" Display="Dynamic" CssClass="err" ControlToValidate="txtMatchLowKick" ValidationExpression="[0-9]+">
                                    </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblK1Rules" runat="server" CssClass="lblBold" Text="Match K1 Rules"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMatchK1Rules" runat="server" Width="50px" Text="0"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="ReqK1Rules" ControlToValidate="txtMatchK1Rules" runat="server" 
                                    Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegtxtMatchK1Rules" runat="server" 
                                    ErrorMessage="Inserisci un numero" Display="Dynamic" CssClass="err" ControlToValidate="txtMatchK1Rules" ValidationExpression="[0-9]+">
                                    </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3" align="center"><asp:Button ID="btnSalvaAtleta" 
                                    runat="server" Text="Memorizza" CssClass="btn"
                                    onclick="btnSalvaAtleta_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
